package com.c4.domain;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.groups.Default;
import java.time.LocalDateTime;

@Data
public class deviceStatus {
    @NotNull(groups = Update.class)
    private Integer id;
    private String name2;
    private String model;
    private String role;
    private String type;
    private Integer health;
    private String name;
    private Double longitude;
    private Double latitude;
    private Integer num;
    private Integer noise;
    private Integer utilize;
    private Integer interfere;
    @NotNull(groups = Update.class)
    private Integer warnStatue;
    @NotNull(groups = Update.class)
    private String warnProblem;
    @NotNull(groups = Update.class)
    private String warnLevel;
    @NotNull(groups = Update.class)
    private LocalDateTime warnTime;
    @NotNull(groups = Update.class)
    private Integer straStatue;
    @NotNull(groups = Update.class)
    private String straWay;
    @NotNull(groups = Update.class)
    private LocalDateTime straTime;

    public interface Add extends Default {

    }
    public interface Update extends Default{

    }
}
